<?php
namespace Duobao\Model;

use Think\Model;

class DBConfModel extends Model{
    protected $tableName = 'config';

    /**
     * 获取单个配置的value
     */
    public function getConfField($confname){
        $condition['name'] = $confname;
        return $this->where($condition)->getField('value');
    }

    /**
     * 获取多个的配置
     */
    public function getConfFields(){

    }
}